import request from '@/utils/request';

// 获取oss服务器的key
export const getOssKey = () => {
	return request({
		// baseURL: "http://192.168.5.123:8080",
		url: '/aliyun/oss/policy',
		method: 'get'
	});
}

// 上传至OSS服务器
export const upImg = (url, query) => {
	return request({
		headers: {
			"content-type": 'multipart/form-data'
		},
		url: url,
		method: "post",
		data: query
	})
}
